package create_创建型.prototype_pattern_原型模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/03/15:59
 * @Description:
 */

public abstract class Shape implements Cloneable {
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	int id;

	String name;

	abstract void draw();

	@Override protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
}
